import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '@/router/index.js'
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'
import VueVideoPlayer from '@videojs-player/vue'
import 'video.js/dist/video-js.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'


const app = createApp(App);
const pinia = createPinia()

app.use(ElementPlus, {
    locale: zhCn,
  })
pinia.use(createPersistedState())
app.use(pinia)
app.use(router)

app.use(VueVideoPlayer)

app.mount('#app')